<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>10_节点操作-父节点</title>
    </head>
    <body>
        
        <div>
            <div id="inner">
                zhangsan
            </div>
        </div>

        <script>
            var inner = document.getElementById('inner');

            // 父节点
            console.log(inner.parentNode);


            // 获取html  dom对象的方式
            var html = document.documentElement;
            console.log(html.parentNode);
        </script>

    </body>
</html>